<div class="info">
<h1 class="font_h1">Tạo mới Albums</h1>
<?php if(isset($error))  : ?>
<h2 class="error_red"><?php echo $error;?></h2>
<?php endif;?>
<form id="frm_add" action="<?php echo base_url().'admin/photo/add_update_cats/'.@$uid?>" method="POST" enctype="multipart/form-data">
<table class="table1">
    <tr>
                <td width="20%">Tên album(Tiếng việt)</td>
                <td width="80%">
                	<?php if(@$cats->title_cats!='') {?>
                    <input type="text" name="txt_title" style="width:400px" value="<?=@$cats->title_cats;?>" />
                    <?php } else { ?>
                    <input type="text" name="txt_title" style="width:400px" value="<?php set_value('txt_title');?>"  />
                    <?php } ?>
                </td>
    </tr>   
    <tr>
                <td width="20%"></td>
                <td width="80%">
                	<span style="background: red;width:200px"><?php echo form_error('txt_title');?></span>
                </td>
    </tr>     
    <tr>
                <td width="20%">Meta Keyword</td>
                <td width="80%">
                	<?php if(@$cats->meta_keyword!='') {?>
                    <textarea name="txt_meta_keyword" style="width:400px; height:150px"><?=@$cats->meta_keyword;?></textarea>                    
                    <?php } else { ?>
                    <textarea name="txt_meta_keyword" style="width:400px; height:150px"></textarea>
                    <?php } ?>
                </td>
    </tr>   
    <tr>
                <td width="20%">Meta description</td>
                <td width="80%">
                	<?php if(@$cats->meta_description!='') {?>
                    <textarea name="txt_meta_description" style="width:400px; height:150px"><?=@$cats->meta_description;?></textarea>                    
                    <?php } else { ?>
                    <textarea name="txt_meta_description" style="width:400px; height:150px"></textarea>
                    <?php } ?>
                </td>
    </tr> 
     
    
    <tr>
                <td width="20%">Sắp xếp: </td>
                <td width="80%">
                <?php if(@$cats->order_cats!='') {?>
                <input type="text" name="txt_order" style="width:20px" value="<?php echo $cats->order_cats;?>"  />
                <?php } else {?>
               <input type="text" name="txt_order" style="width:20px" value=""  />
                <?php } ?>
              
                </td>
    </tr>   
     <tr>
                <td width="20%">Actvie/No active</td>
                <td width="80%">
                <input type="checkbox" name="txt_active" value="1" <?php if(@$cats->active == '1') echo "checked"?>/>
                   
                </td>
    </tr> 
   
   
    <tr>
                <td width="20%"></td>
                <td width="80%">
                	<a  class="button" onclick="$('#frm_add').submit()" href="javascript:void(0)">Lưu lại</a>
                 <a  class="button" href="<?php echo base_url().'admin/photo/list_cats'?>">Quay lại</a>
                </td>
    </tr>
</table>
</form>
</div>
               